package main

import (
	"gin/docs"
	"gin/routes"

	swaggerFiles "github.com/swaggo/files"
	ginSwagger "github.com/swaggo/gin-swagger"
)

// @title           Gin API
// @version         1.0
// @description     Gin swagger api
// @host      		localhost:8080

// @securityDefinitions.basic  BasicAuth
func main() {
	r := routes.SetupRouter()
	docs.SwaggerInfo.BasePath = ""
	r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
	r.Run()
}
